package com.woniuxy.platform.core.service.impl;

import com.woniuxy.platform.core.model.PmEvaluate;
import com.woniuxy.platform.core.mapper.PmEvaluateMapper;
import com.woniuxy.platform.core.service.PmEvaluateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.platform.core.vo.EvaluateVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
@Service
public class PmEvaluateServiceImpl extends ServiceImpl<PmEvaluateMapper, PmEvaluate> implements PmEvaluateService {

    @Resource
    PmEvaluateMapper evaluateMapper;
    @Override
    public int insert(PmEvaluate evaluate) {
        return evaluateMapper.insert(evaluate);
    }

    @Override
    public int selectGood(Integer storeId) {
        return evaluateMapper.selectGood(storeId);
    }

    @Override
    public int selectBad(Integer storeId) {
        return evaluateMapper.selectBad(storeId);
    }

    @Override
    public List<EvaluateVo> evalist() {
        return evaluateMapper.evalist();
    }

    @Override
    public List<EvaluateVo> goods() {
        return evaluateMapper.goods();
    }

    @Override
    public List<EvaluateVo> service() {
        return evaluateMapper.service();
    }
}
